package org.deng.vertx.springboot.util;

import com.alibaba.fastjson2.JSONObject;
import com.alibaba.fastjson2.JSONWriter;

/**
 * @author 邓力宾
 * @date 2022/12/29 9:24
 * @desc
 */
public class FastJsonUtils {
    public static String toJSONString(Object object){
       return JSONObject.toJSONString(object,
                JSONWriter.Feature.WriteMapNullValue,
                JSONWriter.Feature.WriteNulls
        );
    }
}
